/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mvp.levelup.threads;

import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author WORKSPOT2
 */
public class ThreadTest
{
    static Logger logger = Logger.getLogger(ThreadTest.class.getName());
    public static void main(String[] args)
    {
        logger.info("Create thread");
        Thread tr = new Thread(new RunnableExample(10));
        tr.start();
//        MyThread tr = new MyThread();
//        tr.start();
//        tr.turnOff(); - остановка потока посредством завершения метода run
        logger.info("Thread started");
    }
}
